
public class ShowFastest {
//public Bicycle bicycle1;
//public Bicycle bicycle2;

public ShowFastest(){
	
}
/*
public ShowFastest(Bicycle bicycle1,Bicycle bicycle2){
	this.bicycle1=bicycle1;
	this.bicycle2=bicycle2;
}
*/

//methods
public Bicycle findFastest(Bicycle bicycle1, Bicycle bicycle2, int condition){
	Bicycle fastestOne=bicycle1;
	if(bicycle1.getSpeed()>bicycle2.getSpeed())
		fastestOne=bicycle1;
	else
		fastestOne=bicycle2;
	return fastestOne;
	
}
}
